﻿namespace KinonekoSoftware.Foundation.UI.Controls.Selectors
{
    public class ForestTreeView : ForestTreeViewBase
    {

#if WINDOWS
        static ForestTreeView()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ForestTreeView), new FrameworkPropertyMetadata(typeof(ForestTreeView)));
        }
        
        protected override DependencyObject GetContainerForItemOverride() => new ForestTreeViewItem();
#else

        protected override Control CreateContainerForItemOverride(object item, int index, object recycleKey) => new ForestTreeViewItem();

#endif
    }

    public class ForestTreeViewItem : ForestTreeViewItemBase
    {
#if WINDOWS
        protected override DependencyObject GetContainerForItemOverride() => new ForestTreeViewItem();
#else

        protected override Control CreateContainerForItemOverride(object item, int index, object recycleKey) => new ForestTreeViewItem();

#endif
    }
}